package com.jiepu.daily.corejava.advanceed.part1.day0715;

import java.util.Scanner;

/**
 * @Description:
 * @author: xinjie.txt
 * @date: 2020/7/15  8:47
 */
public class LogininDemo {
	public static void main(String[] args) {
		String account = "xinjie.txt";
		String password = "123456";
		Scanner scanner = new Scanner(System.in);
		System.out.println("Input account");
		String acc = scanner.nextLine();
		System.out.println("Input password");
		String pwd = scanner.nextLine();
		//
		if (account.equals(acc) && password.equals(pwd)) {
			System.out.println("login in ...");

		} else {
			System.out.println("login failed...");
		}

	}
}
